package com.netease.qa.biz.service;

import com.nestease.qa.dao.params.ProjectQueryParams;
import com.netease.qa.biz.dto.ProjectDTO;

import java.util.List;

/**
 * @author zoudongdong
 * @date 2018/2/28
 */
public interface ProjectService {
    public void addProject(ProjectDTO project);

    public int getNextProjectId();

    public List<ProjectDTO> getAllProject();

    public ProjectDTO getProjectDetail(int projectId);

    public void updateProject(ProjectDTO projectDTO);

    public String validateBeforeDelete(int projectId);

    public void deleteProject(int projectId,String userId);

    public List<ProjectDTO> getUserRelatedProjectList(String userId);

    public boolean confirmEditProjectPermission(int projectId, String userId);

    public List<ProjectDTO> getProjectListInCondition(ProjectQueryParams params);
}
